package com.runoob.decorator;

import com.runoob.shape.Shape;

/**
 * 图形绘图装饰器
 * <p>
 *
 * </p>
 *
 * @author zenglei
 * @date 2023/07/18/ 11:44
 */
public abstract class ShapeDecorator implements Shape {

    protected Shape decoratedShape;

    public ShapeDecorator(Shape decoratedShape){
        this.decoratedShape = decoratedShape;
    }

    public void draw(){
        decoratedShape.draw();
    }

}
